import request from "@/utils/request";

// 获取列表
export function getAllList(query) {
  return request({
    url: "/houseEconomicDamageAssess/getFailureRatio",
    method: "get",
    params: query,
  });
}

// 查看
export function getHouseFinishDlRatioByXsemId(id) {
  return request({
    url: "/houseFinishDamageAssess/getHouseFinishDlRatioByXsemId",
    method: "get",
    params:{
    	xsemId:id
    }
  });
}

// 获取编号
export function getCode(id) {
  return request({
    url: "/samPoiData/getSamPoiCode",
    method: "get",
    params:id
  });
}

//修改
export function updateLoss(data) {
  return request({
    // url: "/houseFinishDamageAssess/updateHouseFinishDlRatio",
    url: "/houseFinishDamageAssess/houseFinishDlRatioUpdate",
    method: "post",
    data:data
  });
}


// 房屋装修破坏损失比保存接口
export function saveHouseFinishDlRatio(data) {
  return request({
    url: "/houseFinishDamageAssess/houseFinishDlRatioSave",
    method: "post",
    data:data
  });
}